home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_vol_hint.cog < prev    next >
Text File  |  1999-11-15  |  8KB  |  260 lines

  1. # Jones 3D Cog Script
  2. #
  3. # VOL_Hint.cog
  4. #
  5. # Solves hints    
  6. #
  7. # [SXC]    adapted by [CMG]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.         message         startup
  15.         message         entered
  16.         message         crossed
  17.         message         user0
  18.         message         activated
  19.  
  20.         
  21.         thing           player                          local
  22.  
  23.         # HINT OBJECTS/SURFS/SECTORS
  24.         
  25.         thing           hint2
  26.         sector             h2_sect                 # blast first damaged wall and enter sector
  27.         
  28.         thing           hint4
  29.         surface         h4_face                 # cross adjoin to hidden cave 1
  30.         
  31.         thing           hint6
  32.         surface         h6_face                   # enter rock smash face
  33.         
  34.         thing           hint8               
  35.         thing             h8_boatswitch           # hit boat mover switch
  36.         
  37.         thing           hint10
  38.         cog                h10_sharkkeycog            # take key from boat after movement
  39.  
  40.         thing           hint12
  41.         surface         h12_face                # cross adjoin to hidden cave 2 water tunnel from shark area
  42.         
  43.         thing           hint14
  44.         sector            h14_sect                # cross adjoin to hidden cave 2 from water tunnel
  45.         
  46.         thing           hint16
  47.         surface         h16_face                # enter face at mouth of switch cave above lava river
  48.         
  49.         thing           hint18
  50.         thing             h18_gateswitch            # push shark area gate open switch 
  51.         
  52.         thing           hint20
  53.         surface         h20_face                # cross through shark exit doors        
  54.  
  55.         thing           hint22
  56.         thing            h22_deathaltar            # enter lava altar 3do
  57.  
  58.         thing           hint24
  59.         thing             h24_lavaswitch            # flood the lava room
  60.  
  61.         thing           hint26
  62.         surface         h26_face                # exit lava room
  63.  
  64.         thing           hint28
  65.         surface         h28_face                # enter face with first sophia cutscene
  66.  
  67.         thing           hint30
  68.         sector             h30_sect                    # enter face behind door of lekk
  69.  
  70.         thing           hint32
  71.         sector             h32_SECT                # enter face beneath lava mouth in co-op room
  72.  
  73.         thing           hint34
  74.         thing              h34_sophiatalkobj       # talk to sophia for the first time
  75.         
  76.         thing           hint36
  77.         cog              h36_commiekeycog        # pick up key from dead commie
  78.  
  79.         thing           hint38
  80.         thing              h38_sophiafreeobj          # free sophia
  81.  
  82.         thing           hint40
  83.         cog              h40_sophiacoopcog        # speak with sophia at bridge
  84.  
  85.         thing           hint42
  86.         surface         h42_face                # swing across after speaking with sophia
  87.  
  88.         thing           hint44
  89.         thing              h42_trampart            # take tram wheel from crate
  90.         thing            h42_trampartB            # invisiplate near part
  91.  
  92.         thing           hint46
  93.         cog                h46_funicularcog        # fix the funicular
  94.  
  95.         thing           hint48
  96.         thing              h48_switch              # hit the funciular switch
  97.         
  98.  
  99. end
  100.  
  101.  
  102. # ========================================================================================
  103. code
  104.  
  105. startup:
  106.     player = GetLocalPlayerThing();
  107. return;
  108.  
  109. # ========================================================================================
  110. # ========================================================================================
  111. crossed:
  112.  
  113.     If ((GetSenderRef() == h4_face) && (GetHintSolved(hint4) == 0) && (GetSourceRef() == player))
  114.     {
  115.         SetHintSolved(hint4);
  116.     }
  117.     
  118.     if ((GetSenderRef() == h12_face) && (GetHintSolved(hint12) == 0) && (GetSourceRef() == player))
  119.         {
  120.         SetHintSolved(hint12);
  121.         }
  122.  
  123. return;
  124.     
  125.  
  126. # ========================================================================================
  127.  
  128. entered:
  129.         
  130.     If ((GetSenderRef(h2_sect))     &&  (GetHintSolved(hint2) == 0))
  131.         {
  132.         SetHintSolved(hint2);
  133.         }    
  134.  
  135.     if ((GetSenderRef() == h6_face) && (GetHintSolved(hint6) == 0) && (GetSourceRef() == player))
  136.         {
  137.         SetHintSolved(hint6);
  138.         }
  139.  
  140.     if ((GetSenderRef() == h14_sect) && (GetHintSolved(hint14) == 0) && (GetSourceRef() == player))
  141.         {
  142.         SetHintSolved(hint14);
  143.         }
  144.     
  145.     if ((GetSenderRef() == h16_face) && (GetHintSolved(hint16) == 0) && (GetSourceRef() == player))
  146.         {
  147.         SetHintSolved(hint16);
  148.         }
  149.  
  150.     if ((GetSenderRef() == h20_face) && (GetHintSolved(hint20) == 0) && (GetSourceRef() == player))
  151.         {
  152.         SetHintSolved(hint20);
  153.         }
  154.  
  155.     if ((GetSenderRef() == h22_deathaltar) && (GetHintSolved(hint22) == 0) && (GetSourceRef() == player))
  156.         {
  157.         SetHintSolved(hint22);
  158.         }
  159.  
  160.     if ((GetSenderRef() == h26_face) && (GetHintSolved(hint26) == 0) && (GetSourceRef() == player))
  161.         {
  162.         SetHintSolved(hint26);
  163.         }
  164.  
  165.     if ((GetSenderRef() == h28_face) && (GetHintSolved(hint28) == 0) && (GetSourceRef() == player))
  166.         {
  167.         SetHintSolved(hint28);
  168.         }
  169.  
  170.     If ((GetSenderRef(h30_sect)) && (GetSourceRef() == player) && (GetHintSolved(hint30) == 0))
  171.         {
  172.         SetHintSolved(hint30);
  173.         }
  174.     
  175.     if ((GetSenderRef() == h32_SECT) && (GetHintSolved(hint32) == 0) && (GetSourceRef() == player))
  176.         {
  177.         SetHintSolved(hint32);
  178.         }
  179.  
  180.     if ((GetSenderRef() == h42_face) && (GetHintSolved(hint42) == 0) && (GetSourceRef() == player))
  181.         {
  182.         SetHintSolved(hint42);
  183.         }
  184.         
  185. return;
  186.     
  187. # ========================================================================================
  188. activated:    
  189.     
  190.     if ((GetSenderRef() == h8_boatswitch) && (GetHintSolved(hint8) == 0) && (GetSourceRef() == player))
  191.         {
  192.         SetHintSolved(hint8);
  193.         }
  194.  
  195.     if ((GetSenderRef() == h18_gateswitch) && (GetHintSolved(hint18) == 0) && (GetSourceRef() == player))
  196.         {
  197.         SetHintSolved(hint18);
  198.         }
  199.  
  200.     if ((GetSenderRef() == h24_lavaswitch) && (GetHintSolved(hint24) == 0) && (GetSourceRef() == player))
  201.         {
  202.         SetHintSolved(hint24);
  203.         }
  204.  
  205.     if ((GetSenderRef() == h34_sophiatalkobj) && (GetHintSolved(hint34) == 0) && (GetSourceRef() == player))
  206.         {
  207.         SetHintSolved(hint34);
  208.         }
  209.  
  210.     if ((GetSenderRef() == h38_sophiafreeobj) && (GetHintSolved(hint38) == 0) && (GetCurItem(player) == 110))
  211.         {
  212.         If (GetHintSolved(hint34) == 0) SetHintSolved(hint34);
  213.         SetHintSolved(hint38);
  214.         }
  215.  
  216.     if (((GetSenderRef() == h42_trampart) || (GetSenderRef() == h42_trampartB)) && (GetHintSolved(hint44) == 0))
  217.         {
  218.         print("activated on the triggers");
  219.         SetHintSolved(hint44);
  220.         }
  221.     
  222.     if ((GetSenderRef() == h48_switch) && (GetHintSolved(hint48) == 0))
  223.         {
  224.         SetHintSolved(hint48);
  225.         }
  226.  
  227. return;
  228.  
  229. # ========================================================================================
  230. user0:
  231.  
  232.     If ((GetSenderRef() == h10_sharkkeycog) && (GetHintSolved(hint10) == 0))
  233.         {
  234.             SetHintSolved(hint10);
  235.         }
  236.  
  237.     If ((GetSenderRef() == h36_commiekeycog) && (GetHintSolved(hint36) == 0))
  238.         {
  239.             SetHintSolved(hint36);
  240.         }
  241.  
  242.     If ((GetSenderRef() == h40_sophiacoopcog) && (GetHintSolved(hint40) == 0))
  243.         {
  244.             SetHintSolved(hint40);
  245.         }
  246.  
  247.     If ((GetSenderRef() == h46_funicularcog) && (GetHintSolved(hint46) == 0))
  248.         {
  249.             SetHintSolved(hint46);
  250.         }
  251.     
  252. return;
  253.     
  254.     
  255.     
  256. # ========================================================================================
  257. # ========================================================================================
  258. end
  259.  
  260.